<#include "/inc/top.html" />
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<#include "/inc/header.html" />
</head>
<body class="theme-blue">
<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> 
<!--<![endif]-->
<#include "/inc/navbar.html" />

<div class="content">
<div class="header">
<ul class="breadcrumb">
	<li class="active">基本设置</li>
</ul>
</div>
<div class="main-content">
<div class="panel panel-default">
<div class="panel-body">
<form method="POST" action="${ctx}/mgr/resetDevSecret" class="form-horizontal" 
			data-success="eval:form.find('[name=devSecret]').val(data.devSecret);">
	<div class="alert alert-info">开发者授权信息：本站通过开发者授权信息识别开发者及其产品。</div>
	<div class="alert alert-danger"></div>
	<div class="alert alert-success"></div>
	<div class="form-group">
		<label class="col-sm-1 control-label">DevKey：</label>
		<div class="col-sm-4 padding-top-small">
			<input name="devKey" type="text" class="form-control" value="${dev.devKey}" placeholder="DevKey" readonly="readonly">
		</div>
		<label class="col-sm-1 control-label">DevSecret：</label>
		<div class="col-sm-4 padding-top-small">
			<input name="devSecret" type="text" class="form-control" value="${dev.devSecret}" placeholder="DevSecret" readonly="readonly">
		</div>
		<div class="col-sm-1 padding-top-small">
			<button type="button" href="javascript:void(0);" class="btn btn-primary form-control btn-submit" checkPermission="">重置</button>
		</div>
	</div>
</form>
</div>
</div>

<div class="panel panel-default">
<div class="panel-body">
<form method="POST" action="${ctx}/mgr/setAuthCallback" class="form-horizontal">
	<div class="alert alert-info">开发者授权回调：开发者可以通过开发者授权回调获取授权权限，防止资源被盗用。（建议使用）</div>
	<div class="alert alert-danger"></div>
	<div class="alert alert-success"></div>
	<div class="form-group">
		<label class="col-sm-1 control-label">URL：</label>
		<div class="col-sm-9 padding-top-small">
			<input name="authCallback" type="url" class="form-control" value="${dev.authCallback!?html}" placeholder="授权回调地址">
		</div>
		<div class="col-sm-1 padding-top-small">
			<a href="javascript:void(0);" class="btn btn-primary form-control btn-submit">保存</a>
		</div>
	</div>
</form>
</div>
</div>
</div>
</div>
<#include "/inc/script.html" />
<script type="text/javascript">
$(function(){
	getPermisses();
})

</script>
</body>
</html>
